package Lab02.test14;

public class Rectangle extends Shape{
    double length;
    double width;
    Rectangle(double length,double width) {
        this.length = length;
        this.width = width;
    }
    @Override
        double getArea() {
            System.out.println("长方形面积:");
            return  length * width;
        }
    }
